package com.hjt;

import java.util.ArrayList;
import java.util.List;
import com.hjt.config.Config;
import com.hjt.model.MeterInfoDTO;
import com.hjt.upload.UploadAction;

public class Test {
	public static void main(String[] args) {
		UploadAction upload = new UploadAction();
		
		MeterInfoDTO m = new MeterInfoDTO();
		m.setAddress("46000");
		m.setBuildingId(Config.BuildingId);
		m.setChannelDescription("高压仪表");
		m.setIedDescription("1AH1 10KV市电进线(PMC-33M-AV11)");
		m.setNo("1");
		m.setParameterDescription("正向有功电能");
		m.setTcpAddress("=400001");
		m.setValue(0);
		
		List<MeterInfoDTO> meters = new ArrayList<MeterInfoDTO>();
		meters.add(m);
		
		upload.doUpload(meters, System.currentTimeMillis());
	}
}
